import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import watermark from './directives/watermark'


const app= createApp(App)
const list=['add','update','delete']




app.directive('add',{
    mounted(el,binding){
        const btn=binding.value ;
        if(!list.includes(btn)){
            el.remove()
        }   
    }
})

app.directive('watermark',watermark)


app.use(router)
app.use(store)
app.use(ElementPlus)
app.mount('#app')
